/*
 * @lc app=leetcode.cn id=961 lang=javascript
 *
 * [961] 重复 N 次的元素
 */

// @lc code=start
/**
 * @param {number[]} nums
 * @return {number}
 */
var repeatedNTimes = function (nums) {
  let arr = []
  for (let num of nums) {
    arr[num] = !arr[num];
    if (arr[num] === false) return num;
  }
};
// @lc code=end